if the visible of cd btn "OK" is true then send mouseup to cd btn "OK"
if the showpict of this card is false then closehelp "Equipment Help"
end closecard
-- part 1 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=33 top=179 right=331 bottom=418
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 21
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Equipment Help
-- part 2 (button)
-- low flags: 80
-- high flags: C002
-- rect: left=33 top=162 right=180 bottom=418
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Equipment Help
-- part 3 (button)
-- low flags: 80
-- high flags: 0001
-- rect: left=37 top=166 right=176 bottom=47
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Close box
----- HyperTalk script -----
on mousedown
set the hilite of me to true
set the icon of me to "closeboxstar"
end mousedown
on mouseStillDown
if the mouseLoc is within the rect of me then
set the hilite of me to true
set the icon of me to "closeboxstar"
else
set the icon of me to 0
set the hilite of me to false
end if
end mouseStillDown
on mouseUp
global rtncd
set the icon of me to 0
set the hilite of me to false
lock screen
put empty into field "Cat4"
put empty into field "Name4"
show card picture
show card field "Equip Index"
closehelp "Equipment Help"
unlock screen with zoom close
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=20 top=50 right=342 bottom=402
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Obscure 1
-- part 7 (field)
-- low flags: 81
-- high flags: 2002
-- rect: left=49 top=75 right=317 bottom=409
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Preferences
-- part 6 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=326 top=123 right=308 bottom=403
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 21
-- text size: 12
-- style flags: 0
-- line height: 14
-- part name: Equip Index
----- HyperTalk script -----
on mousedown
visual wipe left
go to card line clkln() of me
end mousedown
-- part 8 (button)
-- low flags: 80
-- high flags: A002
-- rect: left=117 top=288 right=306 bottom=188
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: OK
----- HyperTalk script -----
on mouseUp
global hldcd,EquipMenu
lock screen
hide me
hide card field "Preferences"
set the locktext of cd field "Equip Index" to true
set the Style of cd field "Equip Index" to transparent
set the showlines of cd field "Equip Index" to false
go to hldcd
unlock screen with visual zoom close
put cd fld "Equip Index" of cd 1 of this bg into EquipMenu
end mouseUp
-- part contents for background part 180
----- text -----
-- part contents for card part 1
----- text -----
This section can be used to describe equipment and supplies (like a general store). The box beside the title space is actually a pop-up menu for general categorization of the items described (Armory, Supply, Potion...). You can modify this menu by selecting
ΓÇ£Preferences...ΓÇ¥ from the DM menu. DonΓÇÖt worry if fields become unaligned, itΓÇÖs only temporary. If you can't fit your entire description on a single line, add extra returns between entries to make room for notes. Also, you can click on any index entry on the Equipment Title Card to go directly to that category (if one is available).